<template>
  <div class="wrap">
    <div class="goods clear-fix">
      <GoodItem v-for="(item,index) in goodList" :goodItem="item" :key="item + index"/>
    </div>
  </div>
</template>

<script>
  import BScroll from 'better-scroll';
  import GoodItem from "./GoodItem";

  export default {
    name: "goods",
    props: {
      goodList: {
        type: Array,
        default(){
          return []
        }
      }
    },
    components: {
      GoodItem
    },
  }
</script>

<style scoped>
  .goods{
    padding: 3px;
    overflow: hidden;
  }
</style>
